// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router/index'
import axios from 'axios'// 导入
import store from './store/store'
// import store from 'store/dist/store.legacy.min';
// 挂载到Vue实力上，全局可通过this.$store进行调用
Vue.prototype.$store = store
Vue.config.productionTip = false

Vue.prototype.axios = axios
import {
  Button, Tabbar, NavBar, TabbarItem, Search, Col, Row, Image as VanImage, Icon, Cell, Form, Grid, GridItem,
  Tab, Tabs, Field, CellGroup, Swipe, SwipeItem, Rate, Progress, List, Toast, Sidebar, SidebarItem, Dialog, Uploader, Loading, Popover, Tag, ActionSheet, Badge, SwipeCell, Popup, ShareSheet, Skeleton, Overlay, AddressList, AddressEdit, ContactEdit, RadioGroup, Radio, Checkbox, CheckboxGroup, NoticeBar, Collapse, CollapseItem, Step, Steps, ImagePreview
}
  from 'vant';
import 'lib-flexible';


Vue.use(Button).use(Tabbar).use(NavBar).use(TabbarItem).use(Search).use(Col).use(Row).use(VanImage).use(Form).use(Icon).use(Cell).use(CellGroup).use(Field)
  .use(Grid).use(GridItem).use(Tab).use(Tabs).use(Swipe).use(SwipeItem).use(Rate).use(Progress).use(List).use(Toast).use(Sidebar).use(SidebarItem).use(Dialog).use(Uploader).use(Loading).use(Popover).use(Tag).use(ActionSheet).use(Badge).use(SwipeCell).use(Popup).use(ShareSheet).use(Skeleton).use(Overlay).use(AddressList).use(AddressEdit).use(ContactEdit).use(RadioGroup).use(Radio).use(Checkbox).use(CheckboxGroup).use(NoticeBar).use(Collapse).use(CollapseItem).use(Step).use(Steps).use(ImagePreview);
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
